package com.the4man.framework.model.gen;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lenovo on 2017/12/11.
 */
public class LogInfoExampleBase {
    protected String orderByClause;
    protected boolean distinct;
    protected List<Criteria> oredCriteria = new ArrayList();
    protected int limitStart = -1;
    protected int rowsPerPage = -1;

    public LogInfoExampleBase() {
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return this.orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return this.distinct;
    }

    public List<LogInfoExampleBase.Criteria> getOredCriteria() {
        return this.oredCriteria;
    }

    public void or(LogInfoExampleBase.Criteria criteria) {
        this.oredCriteria.add(criteria);
    }

    public LogInfoExampleBase.Criteria or() {
        LogInfoExampleBase.Criteria criteria = this.createCriteriaInternal();
        this.oredCriteria.add(criteria);
        return criteria;
    }

    public LogInfoExampleBase.Criteria createCriteria() {
        LogInfoExampleBase.Criteria criteria = this.createCriteriaInternal();
        if(this.oredCriteria.size() == 0) {
            this.oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected LogInfoExampleBase.Criteria createCriteriaInternal() {
        LogInfoExampleBase.Criteria criteria = new LogInfoExampleBase.Criteria();
        return criteria;
    }

    public void clear() {
        this.oredCriteria.clear();
        this.orderByClause = null;
        this.distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart = limitStart;
    }

    public int getLimitStart() {
        return this.limitStart;
    }

    public void setRowsPerPage(int rowsPerPage) {
        this.rowsPerPage = rowsPerPage;
    }

    public int getRowsPerPage() {
        return this.rowsPerPage;
    }

    public static class Criteria extends LogInfoExampleBase.GeneratedCriteria {
        protected Criteria() {
        }
    }

    public static class Criterion {
        private String condition;
        private Object value;
        private Object secondValue;
        private boolean noValue;
        private boolean singleValue;
        private boolean betweenValue;
        private boolean listValue;
        private String typeHandler;

        public String getCondition() {
            return this.condition;
        }

        public Object getValue() {
            return this.value;
        }

        public Object getSecondValue() {
            return this.secondValue;
        }

        public boolean isNoValue() {
            return this.noValue;
        }

        public boolean isSingleValue() {
            return this.singleValue;
        }

        public boolean isBetweenValue() {
            return this.betweenValue;
        }

        public boolean isListValue() {
            return this.listValue;
        }

        public String getTypeHandler() {
            return this.typeHandler;
        }

        protected Criterion(String condition) {
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if(value instanceof List) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }

        }

        protected Criterion(String condition, Object value) {
            this(condition, value, (String)null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, (String)null);
        }
    }

    protected abstract static class GeneratedCriteria {
        protected List<LogInfoExampleBase.Criterion> criteria = new ArrayList();

        protected GeneratedCriteria() {
        }

        public boolean isValid() {
            return this.criteria.size() > 0;
        }

        public List<LogInfoExampleBase.Criterion> getAllCriteria() {
            return this.criteria;
        }

        public List<LogInfoExampleBase.Criterion> getCriteria() {
            return this.criteria;
        }

        protected void addCriterion(String condition) {
            if(condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            } else {
                this.criteria.add(new LogInfoExampleBase.Criterion(condition));
            }
        }

        protected void addCriterion(String condition, Object value, String property) {
            if(value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            } else {
                this.criteria.add(new LogInfoExampleBase.Criterion(condition, value));
            }
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if(value1 != null && value2 != null) {
                this.criteria.add(new LogInfoExampleBase.Criterion(condition, value1, value2));
            } else {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
        }

        public LogInfoExampleBase.Criteria andIdIsNull() {
            this.addCriterion("id is null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdIsNotNull() {
            this.addCriterion("id is not null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdEqualTo(String value) {
            this.addCriterion("id =", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdNotEqualTo(String value) {
            this.addCriterion("id <>", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdGreaterThan(String value) {
            this.addCriterion("id >", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("id >=", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdLessThan(String value) {
            this.addCriterion("id <", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdLessThanOrEqualTo(String value) {
            this.addCriterion("id <=", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdLike(String value) {
            this.addCriterion("id like", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdNotLike(String value) {
            this.addCriterion("id not like", value, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdIn(List<String> values) {
            this.addCriterion("id in", values, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdNotIn(List<String> values) {
            this.addCriterion("id not in", values, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdBetween(String value1, String value2) {
            this.addCriterion("id between", value1, value2, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andIdNotBetween(String value1, String value2) {
            this.addCriterion("id not between", value1, value2, "id");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeIsNull() {
            this.addCriterion("time is null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeIsNotNull() {
            this.addCriterion("time is not null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeEqualTo(String value) {
            this.addCriterion("time =", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeNotEqualTo(String value) {
            this.addCriterion("time <>", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeGreaterThan(String value) {
            this.addCriterion("time >", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeGreaterThanOrEqualTo(String value) {
            this.addCriterion("time >=", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeLessThan(String value) {
            this.addCriterion("time <", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeLessThanOrEqualTo(String value) {
            this.addCriterion("time <=", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeLike(String value) {
            this.addCriterion("time like", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeNotLike(String value) {
            this.addCriterion("time not like", value, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeIn(List<String> values) {
            this.addCriterion("time in", values, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeNotIn(List<String> values) {
            this.addCriterion("time not in", values, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeBetween(String value1, String value2) {
            this.addCriterion("time between", value1, value2, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andTimeNotBetween(String value1, String value2) {
            this.addCriterion("time not between", value1, value2, "time");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdIsNull() {
            this.addCriterion("user_id is null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdIsNotNull() {
            this.addCriterion("user_id is not null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdEqualTo(String value) {
            this.addCriterion("user_id =", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdNotEqualTo(String value) {
            this.addCriterion("user_id <>", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdGreaterThan(String value) {
            this.addCriterion("user_id >", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdGreaterThanOrEqualTo(String value) {
            this.addCriterion("user_id >=", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdLessThan(String value) {
            this.addCriterion("user_id <", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdLessThanOrEqualTo(String value) {
            this.addCriterion("user_id <=", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdLike(String value) {
            this.addCriterion("user_id like", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdNotLike(String value) {
            this.addCriterion("user_id not like", value, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdIn(List<String> values) {
            this.addCriterion("user_id in", values, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdNotIn(List<String> values) {
            this.addCriterion("user_id not in", values, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdBetween(String value1, String value2) {
            this.addCriterion("user_id between", value1, value2, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserIdNotBetween(String value1, String value2) {
            this.addCriterion("user_id not between", value1, value2, "userId");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameIsNull() {
            this.addCriterion("user_name is null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameIsNotNull() {
            this.addCriterion("user_name is not null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameEqualTo(String value) {
            this.addCriterion("user_name =", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameNotEqualTo(String value) {
            this.addCriterion("user_name <>", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameGreaterThan(String value) {
            this.addCriterion("user_name >", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameGreaterThanOrEqualTo(String value) {
            this.addCriterion("user_name >=", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameLessThan(String value) {
            this.addCriterion("user_name <", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameLessThanOrEqualTo(String value) {
            this.addCriterion("user_name <=", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameLike(String value) {
            this.addCriterion("user_name like", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameNotLike(String value) {
            this.addCriterion("user_name not like", value, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameIn(List<String> values) {
            this.addCriterion("user_name in", values, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameNotIn(List<String> values) {
            this.addCriterion("user_name not in", values, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameBetween(String value1, String value2) {
            this.addCriterion("user_name between", value1, value2, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andUserNameNotBetween(String value1, String value2) {
            this.addCriterion("user_name not between", value1, value2, "userName");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncIsNull() {
            this.addCriterion("func is null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncIsNotNull() {
            this.addCriterion("func is not null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncEqualTo(String value) {
            this.addCriterion("func =", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncNotEqualTo(String value) {
            this.addCriterion("func <>", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncGreaterThan(String value) {
            this.addCriterion("func >", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncGreaterThanOrEqualTo(String value) {
            this.addCriterion("func >=", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncLessThan(String value) {
            this.addCriterion("func <", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncLessThanOrEqualTo(String value) {
            this.addCriterion("func <=", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncLike(String value) {
            this.addCriterion("func like", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncNotLike(String value) {
            this.addCriterion("func not like", value, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncIn(List<String> values) {
            this.addCriterion("func in", values, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncNotIn(List<String> values) {
            this.addCriterion("func not in", values, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncBetween(String value1, String value2) {
            this.addCriterion("func between", value1, value2, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andFuncNotBetween(String value1, String value2) {
            this.addCriterion("func not between", value1, value2, "func");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpIsNull() {
            this.addCriterion("op is null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpIsNotNull() {
            this.addCriterion("op is not null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpEqualTo(String value) {
            this.addCriterion("op =", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpNotEqualTo(String value) {
            this.addCriterion("op <>", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpGreaterThan(String value) {
            this.addCriterion("op >", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpGreaterThanOrEqualTo(String value) {
            this.addCriterion("op >=", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpLessThan(String value) {
            this.addCriterion("op <", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpLessThanOrEqualTo(String value) {
            this.addCriterion("op <=", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpLike(String value) {
            this.addCriterion("op like", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpNotLike(String value) {
            this.addCriterion("op not like", value, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpIn(List<String> values) {
            this.addCriterion("op in", values, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpNotIn(List<String> values) {
            this.addCriterion("op not in", values, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpBetween(String value1, String value2) {
            this.addCriterion("op between", value1, value2, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andOpNotBetween(String value1, String value2) {
            this.addCriterion("op not between", value1, value2, "op");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoIsNull() {
            this.addCriterion("memo is null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoIsNotNull() {
            this.addCriterion("memo is not null");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoEqualTo(String value) {
            this.addCriterion("memo =", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoNotEqualTo(String value) {
            this.addCriterion("memo <>", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoGreaterThan(String value) {
            this.addCriterion("memo >", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoGreaterThanOrEqualTo(String value) {
            this.addCriterion("memo >=", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoLessThan(String value) {
            this.addCriterion("memo <", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoLessThanOrEqualTo(String value) {
            this.addCriterion("memo <=", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoLike(String value) {
            this.addCriterion("memo like", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoNotLike(String value) {
            this.addCriterion("memo not like", value, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoIn(List<String> values) {
            this.addCriterion("memo in", values, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoNotIn(List<String> values) {
            this.addCriterion("memo not in", values, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoBetween(String value1, String value2) {
            this.addCriterion("memo between", value1, value2, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }

        public LogInfoExampleBase.Criteria andMemoNotBetween(String value1, String value2) {
            this.addCriterion("memo not between", value1, value2, "memo");
            return (LogInfoExampleBase.Criteria)this;
        }
    }
}
